//
//  GYX_RootLiveModel.m
//  MELive
//
//  Created by dllo on 16/10/22.
//  Copyright © 2016年 雅馨. All rights reserved.
//

#import "GYX_RootLiveModel.h"
#import "GYX_CollectionData.h"
@implementation GYX_RootLiveModel
- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"data"]) {
        NSMutableArray<GYX_CollectionData *> *topicListArr = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            GYX_CollectionData *topicList = [GYX_CollectionData modelWithDictionary:dic];
            [topicListArr addObject:topicList];
        }
        _data = topicListArr;
    }
}
@end
